//
//  SaProgressHUD.m
//  saas
//
//  Created by fangyibao on 2019/9/9.
//  Copyright © 2019 fangmao. All rights reserved.
//

#import "SaProgressHUD.h"
#import "SVProgressHUD.h"
@implementation SaProgressHUD
+(void)showSucess:(NSString*)string{
    
    [SVProgressHUD setDefaultStyle:SVProgressHUDStyleDark];
    [SVProgressHUD showSuccessWithStatus:string];
    [SVProgressHUD dismissWithDelay:1.8];
    
}

+(void)showError:(NSString*)string{
    
    [SVProgressHUD setDefaultStyle:SVProgressHUDStyleDark];
    [SVProgressHUD showErrorWithStatus:string];
    [SVProgressHUD dismissWithDelay:1.8];
    
    
}
+(void)showText:(NSString*)string{
    
    [SVProgressHUD setDefaultStyle:SVProgressHUDStyleDark];
    [SVProgressHUD showImage:nil status:string];
    [SVProgressHUD dismissWithDelay:1.8];
}
+(void)showMessage:(NSString*)string{
    
    [SVProgressHUD setDefaultStyle:SVProgressHUDStyleDark];
    [SVProgressHUD showInfoWithStatus:string];
    [SVProgressHUD dismissWithDelay:1.8];
    
}
+(void)showSVP{
    [SVProgressHUD setDefaultStyle:SVProgressHUDStyleDark];
    [SVProgressHUD show];
}
+(void)showSVP:(NSString*)string{
    [SVProgressHUD setDefaultStyle:SVProgressHUDStyleDark];
    [SVProgressHUD showWithStatus:string];
}
+(void)dissSVP{
    [SVProgressHUD dismiss];
}
+(void)showProgress:(float)progress {
    [SVProgressHUD setDefaultStyle:SVProgressHUDStyleDark];
    [SVProgressHUD showProgress:progress];
}

+(void)showSVPProgress:(float)progress{
    
    [SVProgressHUD setDefaultStyle:SVProgressHUDStyleDark];
    [SVProgressHUD showProgress:progress];
    
    
}
@end
